import { useContext } from 'react';
import { ThemeContext } from './Theme';

export const useTheme = () => useContext(ThemeContext).theme;

export const setTheme = (theme: string) => {
  localStorage.setItem('theme', theme);
};
